home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PORTABLE.ZIP
/
GETYX.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
2KB
|
49 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef getyx
#ifndef NDEBUG
char *rcsid_getyx = "$Header: c:/curses/portable/RCS/getyx.c%v 2.0 1992/11/15 03:28:53 MH Rel $";
#endif
/*man-start*********************************************************************
getyx() - get cursor position
X/Open Description:
The cursor position of the window is placed in the two integer
variables y and x. This is implemented as a macro, so no & is
necessary before the variables.
NOTE: getyx() is a macro.
PDCurses Description:
This routine is here to as a documentation place holder. The
code in this module will never be executed unless you #undef
getyx(), in which case, you will need the & operator.
X/Open Return Value:
This function returns OK on success and ERR on error.
X/Open Errors:
No errors are defined for this function.
Portability:
PDCurses int getyx( WINDOW* win, int* y, int* x );
or int getyx( WINDOW* win, int y, int x );
X/Open Dec '88 int getyx( WINDOW* win, int y, int x );
BSD Curses int getyx( WINDOW* win, int y, int x );
SYS V Curses int getyx( WINDOW* win, int y, int x );
**man-end**********************************************************************/
int getyx( WINDOW *win, int *y, int *x )
{
*y = win->_cury;
*x = win->_curx;
return( OK );
}